package com.sy.entity;

import org.springframework.beans.factory.FactoryBean;

public class Tank implements FactoryBean<Tank> {
    public Tank() {
        System.out.println("实例化了Tank...");
    }

    @Override
    public Tank getObject() throws Exception {
        System.out.println("开始创建Tank...");
        return new Tank();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
